package com.baosight.risk.common.quartz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.baosight.risk.api.fltd.FltdNoticeToOAService;
import com.baosight.risk.api.fltd.FltdTaskService;

import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @Author: LiuHaoNan
 * @Date:
 */
@Slf4j
@Component("fltdSynchroOATask")
public class FltdSynchroOATask {
    @Autowired
    private FltdNoticeToOAService fltdNoticeToOAService;
    @Autowired
    private FltdTaskService fltdTaskService;
    
    public void testParams(String params, String jobId) throws Exception {
//        System.out.println("进入OA待办定时任务");
    	fltdNoticeToOAService.sendOA(jobId);
//        System.out.println("执行结束————OA待办定时任务");
    }

    /**
     * 补偿删除一个月内关闭的待办
     * @param params
     * @param jobId
     * @throws Exception
     */
    public void compensateCloseOA(String params, String jobId) throws Exception {
    	fltdTaskService.compensateClose();
    }
/*    public void pushOAList(String params, String jobId) throws Exception {
//        System.out.println("进入OA待办定时任务");
        fltdNoticeToOAService.pushOA(jobId);
//        System.out.println("执行结束————OA待办定时任务");
    }*/

}
